package com.wilson.treeviewer.program;

import java.awt.Dimension;
import java.util.List;

import javax.swing.JFrame;

import com.wilson.treeviewer.mock.SampleUsers;
import com.wilson.treeviewer.model.User;
import com.wilson.treeviewer.view.UserTreeWindow;

public class Program {

    public static void main(String[] args) {
        //UserDB db = new UserDB();
        //List<User> users = db.getUsers();
        List<User> users = SampleUsers.createUsers();

        UserTreeWindow frame = new UserTreeWindow(users);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setMinimumSize(new Dimension(400, 300));
        frame.pack();
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
    }
}
